export const DEFAULT_ROUTE = {
  path: '/autoCoding',
  name: 'AutoCoding',
  // 为了tab切换变量名保持一致
  title: 'AutoCoding',
  cacheKey: '/autoCoding',
};

export const ROUTES_WITH_KEEPALIVE = [
  {
    path: '/amap',
    name: 'Amap',
  },
  {
    path: '/autoCoding',
    name: 'AutoCoding',
  },
  {
    path: '/canvas',
    name: 'Canvas',
  },
  {
    path: '/hooks',
    name: 'Hooks',
  },
  {
    path: '/others',
    name: 'others',
  },
  {
    path: '/echarts',
    name: 'Echarts',
  },
  {
    path: '/test',
    name: '测试demo',
  },
  {
    path: '/advanceReact',
    name: 'React进阶',
  },
  {
    path: '/advanceReact/JSX',
    name: 'JSX',
  },
  {
    path: '/advanceReact/LifeCircle',
    name: 'LifeCircle',
  },
  {
    path: '/advanceReact/DataFlow',
    name: 'DataFlow',
  },
  {
    path: '/advanceReact/Hooks',
    name: 'Hooks',
  },
  {
    path: '/advanceReact/VirtualDOM',
    name: 'VirtualDOM',
  },
  {
    path: '/advanceReact/StackReconciler',
    name: 'StackReconciler',
  },
  {
    path: '/advanceReact/SetState',
    name: 'SetState',
  },
  {
    path: '/advanceReact/Fiber',
    name: 'Fiber',
  },
  {
    path: '/advanceReact/Render',
    name: 'Render',
  },
  {
    path: '/advanceReact/ConCurrent',
    name: 'ConCurrent',
  },
  {
    path: '/advanceReact/SyntheticEvent',
    name: 'SyntheticEvent',
  },
  {
    path: '/advanceReact/Redux',
    name: 'Redux',
  },
  {
    path: '/advanceReact/Router',
    name: 'Router',
  },
  {
    path: '/advanceReact/HighPerformance',
    name: 'HighPerformance',
  },
  {
    path: '/advanceReact/DesignMode',
    name: 'DesignMode',
  },
  {
    path: '/advanceReact/React17',
    name: 'React17',
  },
  {
    path: '/others/virtualList',
    name: '虚拟列表',
  },
  {
    path: '/401',
    name: '无权限',
  },
  {
    path: '/404',
    name: '页面不存在',
  },
  {
    path: '/500',
    name: '服务器错误',
  },
];

export const OPERATION_TYPE = {
  REFRESH: 'refresh',
  CLOSE: 'close',
  CLOSEOTHER: 'close-other',
};
